package com.tensquare.search.dao;

import com.tensquare.search.model.Article;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

public interface ArticleSearchDao extends ElasticsearchRepository<Article, String> {

    Page<Article> findByTitleOrContentLike(String titleKey , String contentKey , Pageable condition);

}
